<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<title>{% block title %}Cadê Meu RG?{% endblock %}</title>

<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />

<link rel="stylesheet" href="/media/css/cademeurg.css" type="text/css" />
<script type="text/javascript" src="/media/js/jquery-latest.js"></script>

<script>

</script>

{% block script %}

{% endblock %}

</head>

<body>
<!-- wrap starts here -->
<div id="wrap">

	<!--header -->
	<div id="header">			
	{% block header %}			
		<h1 id="logo-text"><a href="/" title="">Cadê Meu RG?</a></h1>		
		<p id="slogan">Ache seu documento aqui!</p>		
			
		<form id="quick-search" action="/" method="get" >
			<p>
			<label for="qsearch">Search:</label>
			<input class="tbox" id="qsearch" type="text" name="nome" 
			    value="{{ nome|escape }}" title="Start typing and hit ENTER" />
			<input class="btn" alt="Search" type="image" name="searchsubmit"
			    title="Search" src="/media/css/search.gif" />
			</p>
		</form>	
		<p id="login-link">
		{% if url %}
			<a href="{{url}}">Logout</a>
		{% else %}
		    <a href="/meus-achados">Login</a>
		{% endif %}
		</p>		
	<!--header ends-->
	{% endblock %}			
	</div>
		
	<!-- navigation starts-->	
	<div  id="nav">
	{% block menubar %}
		<ul>
			<li id="inicio" class="current"><a href="/">Ínicio</a></li>
			<li id="achados" ><a href="/meus-achados">Meus Achados</a></li>
			<li id="cadastro"><a href="/adicionar-achado">Cadastrar documento</a></li>
			<li id="conta"><a href="/minha-conta">Minha conta</a></li>
			<li><a href="">Blog</a></li>
			<li><a href="">Sobre</a></li>
		</ul>
	<!-- navigation ends-->	
	{% endblock %}
	</div>					
	
	<!-- content-wrap starts -->

	<div id="content-wrap">
	
		<div id="main">
		{% block main %}
			<div id="message">
		    	{% block message %}{% endblock %}	
		    </div>
			<a name="TemplateInfo"></a>
			<h2><a href="index.html" title="">Ache seu documento</a></h2>
			<p>
			<input type="text" class="textbox" name="keywords" size="58"/>
			<input type="button" class="button" value="Buscar" type="submit"/>
			</p>
			
		<!-- main ends -->	
		{% endblock %}
		</div>
				
		<div id="sidebar">
			{% block sidebar %}
			
			<h3>Últimos documentos</h3>
				{% for ultimo_achado in ultimos_achados %}
					<a href="/achado-detalhes?key={{ultimo_achado.key}}"
						title="{%if ultimo_achado.rg%}RG, {%endif%}
						{%if ultimo_achado.cpf%}CPF, {%endif%}
						{%if ultimo_achado.titulo_de_eleitor%}Título eleitor, {%endif%}
						{%if ultimo_achado.cnh%}CNH, {%endif%}
						{%if ultimo_achado.outros%}Outros{%endif%}">
					{{ ultimo_achado.nome }}
					</a>
					<br>
				{% endfor %}
			<h3>Posts do Blog</h3>
			
			<h3>Patrocinadores</h3>
			{% endblock %}
		<!-- sidebar ends -->		
		</div>		
		
	<!-- content-wrap ends-->	
	</div>
		
	<!-- footer starts -->		
	<div id="footer-wrap"><div id="footer-content">
		<div id="footer-bottom">
		{% block footer %}
			<p>
			&copy; 2009 <strong>Cadê Meu RG?</strong> | 
			Design by: <a href="http://www.styleshout.com/">styleshout</a> | 
			Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | 
			<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
			
   		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			
			<a href="index.html">Home</a>&nbsp;|&nbsp;
   		<a href="index.html">Sitemap</a>&nbsp;|&nbsp;
	   	<a href="index.html">RSS Feed</a>
   		</p>	
   		{% endblock %}				
		</div>	
<!-- footer ends-->
</div></div>

<!-- wrap ends here -->
</div>

</body>
</html>
